package com.xinqi.modules.user.user.dto.req;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @version V1.0
 * @Title: 分享链接邀请注册
 * @ClassName: com.xinqi.modules.sys.user.user.dto.req.UserShareRegisterDTO.java
 * @Description:
 * @Copyright 星齐科技（云南）有限公司 - Powered By 技术部
 * @author: yyzhen
 * @date: 2023/5/23 14:29
 */
@Data
public class UserShareRegisterDTO {

    @NotEmpty(message = "{user.phonenumber.not.blank}")
    @Pattern(regexp = "^1\\d{10}$", message = "{user.mobile.phone.number.not.valid}")
    @Schema(description = "手机号")
    private String mobile;

    @NotEmpty(message = "{sms.code.not.blank}")
    @Schema(description = "手机验证码")
    private String smsCode;

    @NotEmpty(message = "{user.password.not.blank}")
    @Schema(description = "用户密码")
    private String password;

    @NotNull(message = "{gpt.share.userId.not.blank}")
    @Schema(description = "分享用户id")
    private Long userId;

    @Schema(description = "用户角色")
    private Integer userRole;

}
